/**
 * Created by Administrator on 2016/6/1.
 */
var teachFunc={
        setScrollWidth:function(){
            $("#scroller").width($("#scroller a").first().width()*$("#scroller a").length);
        },
        scroll:function(){
            this.setScrollWidth();
            var myScroll;
            myScroll = new IScroll('#wrapper', { scrollX: true,scrollY:false,freeScroll: true,snap:true,preventDefault:false});
            //document.addEventListener('touchmove', function (e) { e.preventDefault(); }, false);
        },
        showBox:function(){

            $(".dt-icon").on("touchend",function(){
                $(".dt-more").show();
            });
            $(".dt-btn").on("touchend",function(){
                $(".dt-more").hide();
            });
        }
};
teachFunc.scroll();  //滚动
teachFunc.showBox();   //弹窗显示隐藏
